﻿using Share;
using UnityEngine;

namespace Tower.Data
{
    [CreateAssetMenu(fileName = "ProfabsConfig", menuName = "Scriptable Objects/ProfabsConfig")]
    public class ProfabsConfig : SingletonScriptableObject<ProfabsConfig>
    {
        [Header("动物模板")]
        public GameObject m_HumenProfab;

        [Header("点赞特效")]
        public GameObject m_Vote;

        [Header("狗子弹")]
        public GameObject m_BulletDog;

        [Header("猫子弹")]
        public GameObject m_BulletCat;

        [Header("砖头")]
        public GameObject m_Brick;


        public GameObject GetBullet(RuleDefine.ECamp camp)
        {
            switch (camp)
            {
                case RuleDefine.ECamp.Left:
                    return m_BulletDog;
                case RuleDefine.ECamp.Right:
                    return m_BulletCat;
            }
            return null;
        }
    }
}